package com.qiaoanju.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by eversec on 2017/9/21.
 */
public class BaseModel implements Serializable,Cloneable{


    /**
     *
     */
    private static final long serialVersionUID = -430335124689519448L;

    private Integer id ;

    private Date create_time ;

    private Date update_time ;

    private Integer create_id ;

    private Integer update_id ;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {

        if (create_time == null){

            create_time = new Date();
        }
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {

        if (update_time == null){

            update_time = new Date();
        }
        this.update_time = update_time;
    }

    public Integer getCreate_id() {
        return create_id;
    }

    public void setCreate_id(Integer create_id) {
        this.create_id = create_id;
    }

    public Integer getUpdate_id() {
        return update_id;
    }

    public void setUpdate_id(Integer update_id) {
        this.update_id = update_id;
    }


    public Object clone()
    {
        Object o=null;
        try
        {
            o=(Object)super.clone();
        }
        catch(CloneNotSupportedException e)
        {
            System.out.println(e.toString());
        }
        return o;
    }

}
